<%@page import="doan.quanlycanbo.portlet.util.ActionUtil"%>
<%@page import="doan.quanlycanbo.portlet.service.dienbienluongLocalServiceUtil"%>
<%@page import="doan.quanlycanbo.portlet.model.dienbienluong"%>
<%@page import="javax.portlet.ActionRequest"%>
<%@page import="javax.portlet.WindowState"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portal.kernel.language.UnicodeLanguageUtil" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/init.jsp" %>

<%	
	long mahoso = Long.valueOf(request.getParameter("idHoso"));
	hoso hs = hosoLocalServiceUtil.gethoso(mahoso);
	donvi dv = donviLocalServiceUtil.getdonvi(hs.getMadonvi());
	
	
	
	
	List<quatrinhnghiencuu> qtnnList = quatrinhnghiencuuLocalServiceUtil.getByHoso(mahoso);
%>
<h1><%= hs.getHoten() %> - <%= dv.getTendonvi() %></h1>

<!-- DIEN BIEN HOC HAM -->

<portlet:renderURL windowState="normal" var="addDBHHURL">
	<portlet:param name="jspPage" value="/html/manage_employee/employee/info_employee/update_dienbienhh.jsp"></portlet:param>
	<portlet:param name="mahoso" value="<%= String.valueOf(mahoso) %>"></portlet:param>
	<portlet:param name="madbhh" value=""></portlet:param>
</portlet:renderURL>

<input value="ADD_DBHH" type="button" onClick="window.location.href='<%= addDBHHURL %>' "/>
<br/><br/>
<liferay-ui:search-container emptyResultsMessage="no data" delta="15" >
	<liferay-ui:search-container-results>
		<%
			List<dienbienhocham> dbhhList = dienbienhochamLocalServiceUtil.getByHoso(mahoso);
			results = ListUtil.subList(dbhhList, searchContainer.getStart(), searchContainer.getEnd());
			total = dbhhList.size();
			pageContext.setAttribute("results", results);
			pageContext.setAttribute("total", total);
 		%>
	</liferay-ui:search-container-results>
	<liferay-ui:search-container-row className="doan.quanlycanbo.portlet.model.dienbienhocham" keyProperty="madienbienhh" modelVar="dbhh">
		<liferay-ui:search-container-column-text name="Hoc Ham" value="<%= hochamLocalServiceUtil.gethocham(dbhh.getMahocham()).getTenhocham() %>"  />
		<liferay-ui:search-container-column-text name="Chuyen nganh" property="chuyennganh"  />
		<liferay-ui:search-container-column-text name="Nam phong" property="namphong"  />
		<liferay-ui:search-container-column-jsp path="/html/manage_employee/employee/info_employee/actions_dbhh.jsp" align="right"/>
	</liferay-ui:search-container-row>
	<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
</liferay-ui:search-container>

<br/><br/>
<!-- DIEN BIEN HOC VI -->

<portlet:renderURL windowState="normal" var="addDBHVURL">
	<portlet:param name="jspPage" value="/html/manage_employee/employee/info_employee/update_dienbienhv.jsp"></portlet:param>
	<portlet:param name="mahoso" value="<%= String.valueOf(mahoso) %>"></portlet:param>
	<portlet:param name="madbhv" value=""></portlet:param>
</portlet:renderURL>

<input value="ADD_DBHV" type="button" onClick="window.location.href='<%= addDBHVURL %>' "/>
<br/><br/>
<liferay-ui:search-container emptyResultsMessage="no data" delta="15" >
	<liferay-ui:search-container-results>
		<%
			List<dienbienhocvi> dbhvList = dienbienhocviLocalServiceUtil.getByHoso(mahoso);
			results = ListUtil.subList(dbhvList, searchContainer.getStart(), searchContainer.getEnd());
			total = dbhvList.size();
			pageContext.setAttribute("results", results);
			pageContext.setAttribute("total", total);
 		%>
	</liferay-ui:search-container-results>
	<liferay-ui:search-container-row className="doan.quanlycanbo.portlet.model.dienbienhocvi" keyProperty="madienbienhv" modelVar="dbhv">
		<liferay-ui:search-container-column-text name="Hoc Vi" value="<%= hocviLocalServiceUtil.gethocvi(dbhv.getMahocvi()).getTenhocvi() %>"  />
		<liferay-ui:search-container-column-text name="Chuyen nganh" property="chuyennganh"  />
		<liferay-ui:search-container-column-text name="Nam phong" property="namphong"  />
		<liferay-ui:search-container-column-jsp path="/html/manage_employee/employee/info_employee/actions_dbhv.jsp" align="right"/>
	</liferay-ui:search-container-row>
	<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
</liferay-ui:search-container>

<br/><br/>
<!-- DIEN BIEN LUONG -->

<portlet:renderURL windowState="normal" var="addDBLURL">
	<portlet:param name="jspPage" value="/html/manage_employee/employee/info_employee/update_dienbienluong.jsp"></portlet:param>
	<portlet:param name="mahoso" value="<%= String.valueOf(mahoso) %>"></portlet:param>
	<portlet:param name="madbl" value=""></portlet:param>
</portlet:renderURL>

<input value="ADD_DBL" type="button" onClick="window.location.href='<%= addDBLURL %>' "/>
<br/><br/>
<liferay-ui:search-container emptyResultsMessage="no data" delta="15" >
	<liferay-ui:search-container-results>
		<%
			List<dienbienluong> dblList = dienbienluongLocalServiceUtil.getByHoso(mahoso);
			results = ListUtil.subList(dblList, searchContainer.getStart(), searchContainer.getEnd());
			total = dblList.size();
			pageContext.setAttribute("results", results);
			pageContext.setAttribute("total", total);
 		%>
	</liferay-ui:search-container-results>
	<liferay-ui:search-container-row className="doan.quanlycanbo.portlet.model.dienbienluong" keyProperty="madbl" modelVar="dbl">
		<%
			hesoluong hsl = hesoluongLocalServiceUtil.gethesoluong(dbl.getMahesoluong());
			ngachluong ngluong = ngachluongLocalServiceUtil.getngachluong(hsl.getMangachluong());
		%>
		<liferay-ui:search-container-column-text name="Ma ngach luong" value="<%= ngluong.getTenngachluong() %>"/>
		<liferay-ui:search-container-column-text name="Bac luong" value="<%=String.valueOf(hsl.getBacluong())%>"/>
		<liferay-ui:search-container-column-text name="He so luong" value="<%=String.valueOf( hsl.getHesoluong())%>"/>
		<liferay-ui:search-container-column-text name="Tu ngay" value="<%= ActionUtil.parseDateToString(dbl.getTungay()) %>"  />
		<liferay-ui:search-container-column-text name="Den ngay" value="<%= ActionUtil.parseDateToString(dbl.getTungay()) %>"  />
		<liferay-ui:search-container-column-jsp path="/html/manage_employee/employee/info_employee/actions_dbl.jsp" align="right"/>
	</liferay-ui:search-container-row>
	<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
</liferay-ui:search-container>

<br/><br/>
<!-- QUA TRINH DI NUOC NGOAI -->

<portlet:renderURL windowState="normal" var="addQTDNNURL">
	<portlet:param name="jspPage" value="/html/manage_employee/employee/info_employee/update_qtdnn.jsp"></portlet:param>
	<portlet:param name="mahoso" value="<%= String.valueOf(mahoso) %>"></portlet:param>
	<portlet:param name="maqtdnn" value=""></portlet:param>
</portlet:renderURL>

<input value="ADD_QTDNN" type="button" onClick="window.location.href='<%= addQTDNNURL %>' "/>
<br/><br/>
<liferay-ui:search-container emptyResultsMessage="no data" delta="15" >
	<liferay-ui:search-container-results>
		<%
			List<quatrinhdinuocngoai> qtdnnList = quatrinhdinuocngoaiLocalServiceUtil.getByHoso(mahoso);
			results = ListUtil.subList(qtdnnList, searchContainer.getStart(), searchContainer.getEnd());
			total = qtdnnList.size();
			pageContext.setAttribute("results", results);
			pageContext.setAttribute("total", total);
 		%>
	</liferay-ui:search-container-results>
	<liferay-ui:search-container-row className="doan.quanlycanbo.portlet.model.quatrinhdinuocngoai" keyProperty="maqtdnn" modelVar="qtdnn">
		<liferay-ui:search-container-column-text name="Quoc gia" property="quocgia"  />
		<liferay-ui:search-container-column-text name="Muc dich" property="mucdich"  />
		<liferay-ui:search-container-column-text name="Tu ngay" value="<%= ActionUtil.parseDateToString(qtdnn.getTungay()) %>"  />
		<liferay-ui:search-container-column-text name="Den ngay" value="<%= ActionUtil.parseDateToString(qtdnn.getTungay()) %>"  />
		<liferay-ui:search-container-column-jsp path="/html/manage_employee/employee/info_employee/actions_qtdnn.jsp" align="right"/>
	</liferay-ui:search-container-row>
	<liferay-ui:search-iterator searchContainer="<%= searchContainer %>" />
</liferay-ui:search-container>











